package com.usian.order.controller;


import com.usian.common.Result;
import com.usian.order.service.INotificationsService;
import com.usian.vo.CollectionDetailsVo;
import com.usian.vo.NotificationsVo;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-01-15
 */
@RestController
@RequestMapping("/order/notifications")
public class NotificationsController {

    @Autowired
    private INotificationsService notificationsService;

    @Operation(summary = "消息通知")
    @GetMapping("/NotificationsAll/{userId}")
    public Result<NotificationsVo> NotificationsAll(@PathVariable Integer userId){
        return notificationsService.NotificationsAll(userId);
    }

}
